package ragserverengine.neo4j

import kotlinx.serialization.Contextual
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonElement


@Serializable
data class Neo4jQueryRequest(
    val nodeName: String,                             // 节点标签
    val attributes: Map<String, JsonElement>? = null  // 可选的属性过滤条件
)

@Serializable
data class Neo4jQueryResponse(
    val success: Boolean,
    val message: String? = null,
    val data: List<Map<String, JsonElement>> = emptyList()
)


@Serializable
data class Neo4jInsertRequest(
    val nodeName: String,        // 插入节点的名字
    val attributes: Map<String, JsonElement>? = null
)

@Serializable
data class Neo4jInsertRequestAttrKey(

    val neo4jNodeAttri: Map<String, String>
)

@Serializable
data class Neo4jInsertResponse(
    val success: Boolean,
    val message: String? = null
)

